Worked on scanner.c: main