Finished ch.5 exercises