divided scheduler into subclasses for lab 2