Adding basic structure of train class.