sample code on using hashes