Add example usage for the scheduler class