added a reset function to bonus class