ex5: training
ex6: finished