light class working version