add thining in java chapter 7