solved till problem 3.6