Applying the Templating Function to our Dataset