Setting framework for solving the problem