ex1.12 done