finished ch 14 exercise