added comments to rectangle and ellipse class