Generalized theory of gravitation