Finished chapter 1 excercises