solved till problem 2.2