ex2.21 done