Added code and tests for "contains" functionality