A short exercise to do basic arithmetic using functions and define_method.