Added sample code for writing values from Visitor.
Slightly refactored sample test code,

in order to make it more explicit what's going on when you read the code
outside of an IDE (e.g. on GitHub).