Finished ch6-exercises