finished ch09 exercises