Chapter 5

Fixed BUG - copied code form book