Finished exercises from chatper 3