update scanner module and create a scan() method which does the chunk of the work.