Add a new clear method in the Output class