**Intelligent Resource Allocation in Residential Buildings Using Consumer to Fog to Cloud Based Framework†**
