Modifications to Exercise 3