finish ex2 of assignments(mention that if error occurs, the stack
operations should be read continuously, or else left stacks operations
may have error)
finish ex3 and add part of ex4