working with the Scanner class