Calculator using Ruby