Fixing errors no 'toHashCode' method for addObject, adding logs