added resample module to chapter 8