Added stack.h and modified stack.c