Converted EnergySource to interface