dependancy injection of eligibility class