Add exercise 8 part 1
Simplify ex8p1 slightly