Implemented simple discount handling

Works for simple offers (i.e. n similar items).