new template for the main

methods and objects will be copy/paste in it