Applied changes to APIBuilder constructor to examples.