made comparator and set up superclass