thinking in java chapter 12 - Passing and returning objects