got all the data. Begin making the actual algorithim