how to input the scanner class