Add demo code from energenie