Add loadInput() method to StackMachine