Rail class and City class implemented.