creating rails structure