Working on template structures