Changed class Object to class Element