Finished Rotman Exercise 1.2.i