completed initial implementation of add method