Added template controller for samples