Can someone explain the following preamble to me? This is copied and pasted from a problem set template my T.A. made to help us typeset our homework... I'd really like to understand how it works. The thing that is stumping me the most is lines 5-6; why was it necessary to define a new TeX macro. Is it usually necessary to do so in LaTeX documents?
\setlength{\parindent}{0pt}
\setlength{\parskip}{5pt plus 1pt}
\pagestyle{empty}
\def\indented#1{\list{}{}\item[]}
\let\indented=\endlist
\newcounter{questionCounter}
\newcounter{partCounter}[questionCounter]
\newenvironment{question}[2][\arabic{questionCounter}]{%
\setcounter{partCounter}{0}%
\vspace{.25in} \hrule \vspace{0.5em}%
\noindent{\bf #2}%
\vspace{0.8em} \hrule \vspace{.10in}%
\addtocounter{questionCounter}{1}%
}{}
\renewenvironment{part}[1][\alph{partCounter}]{%
\addtocounter{partCounter}{1}%
\vspace{.10in}%
\begin{indented}%
{\bf (#1)} %
}{\end{indented}}