modify the Rm function, Next step : try modify the code which can suitable for every sequence.