Class for managing math sets