update store with Command defined by Request
exec(Request a) { store.update(config[a.type](a.payload)); }