Adds several new methods which are used by pRPN (exercise 3.3)