finished basic functions for calculator.rb