Variable assignment of created objects