Main Rails structure