Create properties where type is another object