complete stack, tested all functions for stack operation