Added clear() method