prog 18.2
mutable copy