Text this: Existence of periodic solutions and homoclinic orbits for third-order nonlinear differential equations