Let x1,x2,...xn constitute a random sample of size n from a geometric distribution with PDF given by:

f(x,theta) = theta*((1-theta)^(x-1)) x=1,2,3....

Find the method of moments estimator of theta?

Any help is appreciated!