Additionally, you don't need a `return` for the last line of a ruby method.  It would be more idiomatic to just do `res`.