initial code to display a lightcurve from a eclipsing binary