ratio() function added. tested for the last strings in the main