added method calc_path to ellipse class