Homework 5 Sorter in class