add demo for basic usage of link function.