Data science

This is a good start. I would recommend another round of re-factoring and also to get the chi-square text working correctly.