initial working code for outputing hash list