First draft of Implemenation of Train.py