finishing lottery scheduler and commented out selfTest