created Light abstract class and had Sun and Bulb extend so that logic in main can all be done once