prepare sort of class