Composition of ordinary generating functions