Let’s go ahead and create our private methods. (It makes sense to create these first, since our public methods will rely on them.)
private methods to your
pin should take no arguments and set an instance variable,
@pin, equal to the PIN number
pin_error should take no arguments and should simply return the string
"Access denied: incorrect PIN."