my solution for resampling wheel
resampling wheel (course solution)