Added RailwayBase class