Using another method to access trains.
Implemented new classes to allow the app to be scalable.