implementing a simple stack

for testing only