#21: define reset() function