Attempting the hash function, as well as the class constructor and destructor