Added contains method to Domain