I don't usually code in ruby so if this isn't ruby-esque I'd love to take suggestions :)