Trying to implement Hash