implement a new method scanner