a door with a lock is used for selectively letting people in and out.