Broke out functionality into email objects and predictor object