use ex1 instead of scanner_test to test scanner