Implement simple stack and multiton