Example code from mutability/immutability lecture