a roof is used for preventing water and snow from getting into the house that it covers