change example to use int