finished ex5.6