\documentclass{article}
\usepackage{flexiprogram}

\title{Preparing Documents using \LaTeX}
\author{I, Me and Myself}

\textheight 9in
\textwidth 6.5in
\oddsidemargin -.5in

\begin{document}

\maketitle

\begin{abstract}
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
This is an abstract.
\end{abstract}


\clearpage

\section{Introduction}

{\bf
This is my first document.
}
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
\sffamily
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.
This text is not in boldface.


\subsection{This is a subsection}
And this is the text in a subsection.

\begin{enumerate}

\item We are listing down the kinds of lists.

The inner list is an itemize list.
\begin{itemize}
\item This is the first item.
	\begin{itemize}
	\item This the first subitem
	\item and this is the second
	\end{itemize}

\item This is the second item.
\end{itemize}

\item The outer list is "numbered" list.

	\begin{enumerate}
	\item This is the first numbered subitem.

	\begin{enumerate}
	\item Yet another sublist.
	\end{enumerate}
	\end{enumerate}

\end{enumerate}

\begin{figure}
\begin{center}
\begin{tabular}{|r|c|c|l|}
\hline
First item & Second & Third & Fourth \\
\hline
\hline
1 & 2 & \begin{tabular}{l}
one\\ \hline two\\ \hline three\\\hline
\end{tabular}
& 4 \\
\hline
& 
\multicolumn{3}{|c|}{Looooong Item!} \\ \hline
\end{tabular}
\end{center}
\caption{Here is  my first table}
\label{tab:first}
\end{figure}


\begin{equation}
x^{z^2} = \sum_0^n y_{i^3} 
\end{equation}


\appendix
\section{Is this an appendix?}

As shown\footnote{Here is a footnote} in Table~\ref{tab:first} .....

\subsection{This is a subsection in an appendix}
\subsubsection{This is a subsubsection in an appendix}

\begin{program}{50}
\FL First line
\NL{0} \OB Second line
\NL{1}	\OB Third line
\NL{1}	\CB
\NL{0} \CB
\end{program}

\end{document}
