when using \begin{algorithm} in latex for writing algorithms, we will have something like this:

Is there any way to have something else like "Procedure" instead of "Algorithm"?
Edit:
I tried something like is said in this post
\renewcommand{\algorithmname}{Procedure}
but I get this error: algorithmname Undifined
My code is like this:
\documentclass[a4paper,12pt]{report}
\usepackage{algorithm}
\renewcommand{\algorithmname}{Procedure}
\begin{document}
\begin{latin}
\setstretch{1.0}
\begin{algorithm}
\caption{My algorithm}\label{euclid}
\begin{algorithmic}[1]
\Procedure{Building }{M}
\EndProcedure
\end{algorithmic}
\end{algorithm}
\end{latin}
\end{document}
\documentclass{...}and ending with\end{document}. – Dec 24 '14 at 09:51