changed add method to return a boolean