Fixed a mistake in one of the pieces of example code for objects