refine function
add number operation in ruby
change calling method