editing the first baseline code and also added the code to train with
NVVs