Adding chap06 test code
Homeworks 3 and 4.