Adding solution to REVC problem.