Adding the interesting stuff

Here's the code we care about
you might want to add some whitespace in here to make it a little easier on the eyes.