solved till problem 1.6