Fixed the formulas in ellipse
Rectangle and Ellipse class working as intended