add exercise 5.7
Merge pull request #51 from hysysk/exercise_5_7

add exercise 5.7