Add a link generator class and test