adding the rails structure