The art of shaping memory