Added code for training
Added training script