Practicing from Thinking in Java Book