Inital rails code