[Tak] problem 6A and 7A done