working on rpslp enhanced (intermediate challenge)