Without breaking the encapsulation, design a system to memorize the movements of a graphic object.
Storing the state of the graphic object using the flag makes it possible to preserve the encapsulation.