\resetsteps      % Reset all the commands to create a blank worksheet  

\begin{figure}[tbp]

\begin{center}     % center the algorithm on the page 
\footnotesize      % make the font smaller so things fit on a page 
 
\worksheet         % this command generates the worksheet using the 
                   % commands that were defined between the \resetsteps 
                   % and the worksheet command 
\end{center} 
 
% The following command creates a caption for the figure. 
 
\caption{Worksheet for deriving an algorithm.}
 
 
% The following command creates a label so that the figure can 
% be referenced by its number by inserting  
%  \ref{fig:ws} in the \LaTeX source 
 
\label{fig:ws}
 
\end{figure} 

