Added new 'clear' method to empty the container.