Implement basics of calculator.rb
Add factorial function