Emily has a brother that likes to come into her room.
Emily's brother learned his lesson about knocking before entering.
Frank locked the door behind him.
Emily locked her brother out of her room when he wanted to play.