A code sample I wrote in a couple hours, needs to do a lot but it shows the style