Added reverse method ruby