complete ex5_1.