Finalizing code for HW 8, Chapter 14 exercise
Updating code for Chapter 14 Exercise