new percent_of() function