A practice from Thinking in Java