created create_dict function
completed code