Finish implementing the stack