Using type in new.