Finished Question 5 on Assignment 1