Done chapter 5 to excerciese 12