Make the samples in the README actually work.

This is a tiny fix for the README. Obviously different snippets where copied from different Versions of the sample Application.