Added solution to exercise 8.1
Completed exercises for chapter 8