Implementation of smart residential energy management system for smart grid | Synapse