One way to modify the SimplePicture class
Note the change shown in boldface in Listing 1.
(There are probably other ways that you can modify the class to achieve the same result as well.)