ch3.5 exercises
finished ch03