Ch2 Exmp4

Finished example 4