Added ratio calculation to the program