This is the solution for the challenge