second homework, first task

sorter interface