Added the code that calculates the area and perimeter for rectangle and ellipse