second commit

solve the problem of the part 3 of TP1