sources code for part 2: Bagging MLP