Adding mediant and Farey Sequence functions