move the sample hooks code to a separate folder.