Exact solutions for some nonlinear partial differential equations