Generalized Method of Cells