need to make changes on the stack class, it's too verbose. Also need to do stress testing