Implemented clear method