Adding main method and new scanner object