Updated Object Creation example

Changed the variable name from key to value.