HW 3 on dictionaries