First approach to hash implementation