Ch2 Exmp7

Finished example 7