From the functions R+R homework.