Laying out thr rails