Add ex.1.16
Add ex1.17
Add ex1.18 and one test case to ex1.17