Added a base class for all elements