Second commit while studying for the EJB cert.

It include most of the code example until chapter 6.