Most of these are custom methods that they've just written. We can probably rewrite them to look a bit more rubyish if you like.