Using typed object creation