create math class