Created a makeLink function