adding demo method add() and how to call it