Example of putting an object into an array