Cosmology of f(R,❑R) gravity