create a file with a class which includes sorting, and derived classes