Setting up the template