Nest returning variables in an array