Implementation of basic add functionality