Initial implementation
Merge pull request #89 from johnttan/implementSettleDemand#56

Initial implementation