created an object called DomElement to handle all operations with DOM elements