Create objects before assigning elements