ex11.31 should find an element rather than key.
refactor ex11_32