Convert old-style class to new-style class