rewrite Stack.c