Added arrayToObject