Completed all exercises from chapter 2.