closes #9 implemented ExtensionElement class.