Completed the add method