added code to retrieve train schedule