problem 1 solved and commented