toHash Method