refactor forecast to model, class and package