solved till problem 1.7