I think you got the solution right.