Object allocation and initialization