Added implementation of exercise 5
Added implementation of exercise 6
Added implementation of exercise 7
Added implementation of exercise 8