Finish exercise of Chapter 6 and 7