Adding the rails structure