Part 1. Implemented the generation and printing of key-value pairs. -DV