ex1.39 done