Adding factory to the builder