Extract a Scanner class