Created Factory for Sorter