Using Histogram Template instead of Hardcoded hist.