Beamline Layout and Optics