# untested my $InvoiceCalculatorClass = $client->InvoiceCalculator; my $ic = $InvoiceCalculatorClass->new(client=>$client);