Solve problem number 4