simplify sample code

the getSubject() method does pretty much what is shown in the example.

@koyaan : I followed the recipe, it works well, but I'm not sure why `getSubject()` was not used here. Maybe it did not exist at the time you wrote the recipe ?