Exact solutions of two nonlinear partial differential equations by using the first integral method