Add hash program with undef function.

Exercise 6-5.