RSA class functions added