Added skeleton for hash function.