Function rates_table works