scheduler class finished and lightly tested