finished whole exercise 3 !