Reset function added

Hi! I missed reset function so I made it. I think that it will be beneficial for someone.