New contains function