Looks like I wrote it in Ruby