Converted the class elements hash to object properties