Ch2 Exmp6

Finished example 6