Solve!
view the code