split into functions
deleted old code
split into parse / predict
base line version