add solution for chapter 5