Integrated algorithm code from Project of colleague
Implementation of Demand and Order-Classes