Connecting early and late universe by $f(R)$ gravity — arXiv2