Exercise from polish java ee 6 book