Put object into arrays