Scanner to class field