Added clear method and example