Psuedo Code for Scanner