finished ch6 checkpoint exercises