Refactors Account constructor to use prototype for functions