add method in C