Finished implementation of stacks