#9 convert attrib templates

Adds templates
Convert the factor code to Ohai plugin.
Use 2 (not 1) spaces for indentation.<br>Tab detected.