trying to implement stacks