added more functions to password class