math class, ellipse