ellipse notes and code