a roof can be used for keeping the rain out of buildings