Updated scanner.c