a stack "class" for c