solved till problem 2.3