finished calculator.rb, need to finish factorial