part 3 done. Prediction is coded. Now time to debug.