Refactored classify into Class.