extract class