Ruby Kata: Caching