email predictor refactored into two different classes and module