Separate definition and declaration of stack.