Terminal:some code in add() function