Added `clear` function
Merge pull request #758 from bvssvni/newdesign

Added `clear` function