implement the stack interface
first