Solution of fractional partial differential equations using iterative method