IMPLEMENT THE SOLUTION