Execises 5.6.1 and 5.6.2
Finished Chapter 5 exercises