\documentclass{coursework}

\module{modname}{modcode}
\cwtitle{Coursework Title}
\studentid{123456789}

\begin{document}

\nocoverpage
%\coverpage

%Question 1
\item Question goes here.

	%Q1 Solution
	\begin{solution}
		Solution goes here.
	\end{solution}


%Question 2	
\item Main question goes here.
	
	\begin{parts}
	
	%Question 2a
	\item Part 1 question goes here.
		
		%Q2a Solution
		\begin{solution}
			Solution to part 	1 goes here.
		\end{solution}
		
	%Question 2b
	\item Part 2 question goes here.
	
		%Q2b Solution 
		\begin{solution}
			Solution to part 2 goes here.
		\end{solution}
		
		\end{parts}
		
\end{document}