Added function clear()