a simple (and not very rubyish) example of a class