Added some sample code for hash encoding methods