CHANGED:applied the train and test implementation;