Writing the Code and Link methods