Fix code examples with constructor arguments