character generation and storing key/values in hash works