My solution for rubykoans