Some data structure practice in Ruby.