changed rates to a nested hash from array
added conversion_rate(to, from)