Creating a custom template