added part on dictionary iteration using items()