Assignment 2, Exercise 2