second solution: use subclassing
Merge branch 'master' of github.com:xpepper/memoization_example