first attempt at doing something which I don't know how to do
aka resampling