Finished up to question 5 in assignment 1.