Storing properties and values in arrays