Ex12 chapter6 done