solved till problem 1.5