A generalization of the isoperimetric inequality