add and solve problem 3