added the scanner class and added the fraction object