Update hello.cpp

added add() function;