adding the gist code for ellipse and rectangle