Changed main.R to put previous class value in the data set.