added the second coursework source code