Updated Object creation example

Changed the variable name in the Object Creation section from key to
value.