Trying to solve problem