Use define_method instead of method_missing