Setting the framework for solving the problem