Using maps to store key-value pairs