Finished both the set() and add() methods