Added solution for chapter 2 problems