add exercise 5.7

I tried the exercise 5.7