Assign variables as if they were an array