Added rps.c