exercise 5.9 from implemented
exercise 5.10 fibs implemented