added Pin model