Working on examples from Symfony2 framework documentation