model changes

I've replaced the List of classes by  the List of the array of classes.
This array contains two classes: first is numerator class , second is
denominator class. Also, I've changed sorting using Comparator.