Finished chapter 3 part A