A-series and B-series