Done chapter 3 to excercise 13