Thermally insulated walls and roof