Revert "Revert "RPS original source code""

This reverts commit 8d3f69e5d1c357fb4fb037953c0e683b5e1d46f2.