Making sample a bit more interesting

More work on the API is coming soon, I promise