Updated Chapter 2 Exercise 2