finished ch7-exercises