started the add method as a base for the others
finalized the add function