Shaping representations through communication