Existence of periodic solutions for first order differential equations