package com.natpryce.pearlfish.example;

import java.math.BigInteger;
import java.util.Stack;

public class Calculator {
    private final Stack<BigInteger> operands = new Stack<BigInteger>();

    public void push(BigInteger operand) {
        operands.push(operand);
    }

    public void push(long operand) {
        operands.push(BigInteger.valueOf(operand));
    }

    public BigInteger top() {
        return operands.peek();
    }

    public BigInteger pop() {
        return operands.pop();
    }

    public void add() {
        push(pop().add(pop()));
    }

    public void mul() {
        push(pop().multiply(pop()));
    }
}

@@ -310,33 +310,24 @@
 ) %7B%0A        
-operands.
 push(BigInte
@@ -360,77 +360,8 @@
  %7D%0A%0A
-    public BigInteger top() %7B%0A        return operands.peek();%0A    %7D%0A%0A
     

Tidy up