solve problem 004