add rps folder
working rps code