Golf version in ruby