Construction and maintenance of railways