add answer for exercise chapter1 7 and 8

add answer for exercise chapter1 7 and 8
Merge branch 'dev'