updated code to construct proper features to train with.