Add spec
Output nil for keys first record
DRY calc_rate
Oops.. chain.next was missing!
Log zero devide exception