Added a solution for "ride" problem.