finished chapter 2 exercise 2
finished chapter 2 exercise 3