exercise 2a, 3a and 4a
added exercise 5a, 6a and 7a