Ch2 Exmp5

Finished example 5