用类实现deepid.