The trains code route method made