Updated the whole program to deal in percents