Another way to say "a wall is used for containing a room" is "walls surround a room"