Environments, quantities and a bit of event store