ex 1.3.4 - paren balancing with a stack