refactored the scanner file to create token objects so we can store all the information about the objects