ex2.47 done