define a Door constructor function. A door instance exposes the two methods open and close that chage the values of a state property respectively to open and closed.
define a SecurityDoor constructor function that inherits the bhehaviour from Door but once closed a security_door instance can be locked via the lock method. Invoking the unlock method, bring the security_door back to the close state.