rough solution

Check it :D