Added a createLink helper method to the Model class