Use templates to format the data