Working with mutable objects in JShell