change studentAccessors to factory instead of service