created addStackSymbol() function