a door with a lock can be used for selectively letting people in and out