add controller, repository and template sample