using classes for light object