implemented creating instance with arguments in primitive types