clear() method added