BEFORE EXTRACT CLASS