   #//////////////////////////////////////////////////////////////////////////////
   # Rule analysis
   #//////////////////////////////////////////////////////////////////////////////
+  cells_icon = (value) -> "cellicon icon-cells_#{ value.toString(16) }"
   show_rule_diagram = (rule, element) ->
-      cells_icon = (value) -> "cellicon icon-cells_#{ value.toString(16) }"
       #rule must be array of 1 6 integers
       throw new Error ("Function must be array of 16 elements, not\n" + rule)  unless rule.length is 16
 

      else
        dom.text("Rule has dual transform: ").text(Transforms.getDescription dualTransform[0])
    dom.end()
    
    element.innerHTML = ""
    element.appendChild dom.finalize()

    population_invariance = Rules.invariance_type rule
    invertible = Rules.is_invertible rule
    dualTransform = getDualTransform rule
    vacuum_cycle = Rules.vacuum_cycle rule
    ######### Report generatio part ############
    dom = new DomBuilder

