Working on scheduler class