working rb soln for rolelrcoaster