ex2.40 done