Functional approach to the problem