ex5_6 finished