extraction to classes