add thinking in java chapter 5