Conversion into a class