lesson 2 of Agile Java Book