start chapter3, implement stack and queue