Just drafting the DGz class and adding the weight w into Link