Contains method that does not work