# Step 1: Define a class named Calculator
class Calculator
# Step 2: Define a method named add within the Calculator class
def add(a, b)
# Step 3: Return the sum of the two input parameters, a and b
return a + b
end
# Step 4: Define a method named subtract within the Calculator class
def subtract(a, b)
# Step 5: Return the result of subtracting b from a
return a - b
end
end
# Step 6: Create an instance of the Calculator class named calc
calc = Calculator.new
# Step 7: Call the add method of the calc instance with arguments 5 and 3
result_add = calc.add(5, 3)
# Step 8: Call the subtract method of the calc instance with arguments 8 and 2
result_subtract = calc.subtract(8, 2)
# Step 9: Print the results of the add and subtract operations
puts "Addition Result: #{result_add}"
puts "Subtraction Result: #{result_subtract}"