Building the curved rail