Hw 3/add to dict

addd_to_dict function was implemented