Completed some exercises from chapter 10