Add functionality to set classes for each element-type