Adds RP as defined in 2013/10/25 lecture