Worked dictionary into program