Add clear

Added the clear method