add contains function on Object