Modified stack.c