add classes extraction