How a sitcom is constructed