How to use Templates