added Manifold class in manifold.py