refactor to MVC, reimplement predictions as a class