Added 'contains' method with tests and documentation.