Building blocks - code structure and base template