Realign the hash set example with added api