solved till problem 1.3