add chainr (fp, task 10)