Functions with the solution