correct bug. stack should be FILO
add test for pop
top should be the tail of the list