Foundations of Engineering: Electricity and Photonics