added Device.java and EnergySource.java to common