ex 5_2 done