Production-Able Program on the Segments