Finished ch.2 examples and exercises