data structure to store key and values