Added get_array() method to calculator. This keeps an array of
operations.