updated Hash Table with contains() method