First functionality of train