Constructor With Types Of Objects