%sample.tex
\documentclass[12pt]{article}
\usepackage{homework}
\sethwtitle{Your homework title}%
\sethwauthor{Your name}%
\makehwheader%

\begin{document}
\setlength{\parskip}{10pt plus 1pt minus 1pt}

\makehwtitle%

\section{put your problem1's description here.}

\subsection{a}
Solution:\\
A's solution.

\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.55]{jflap}
\end{center}
\vspace{-0.6cm}
\caption{Sample output from JFLAP}
\label{fig:JFLAPsample}
\end{figure}

Figure \ref{fig:JFLAPsample} shows a sample DFA generated in JFLAP.

\subsection{b}
Proof:\\
B's proof.

\end{document}
%end of sample.tex