Add the method clear in the input class