Assignment 1, Exercise 4