I will be reformatting code samples soon, but in the interim, feel free to have a look at these: