Create predictor.java

rough draft of predictor class (not compiled or double-checked; just let me know if the format makes sense)