Rename object to class