         clearInterval @timer
         @timer = null
 
-
-count = (0 for [0..19])
-colPos = []
-
 plot = new Plot
+histo = new Histo
 
 sim = new Simulation
 $("#params4b").on "click", =>
     sim.stop()
 setTimeout (-> sim.start()), 2000
-

        @element.selectAll("svg").remove()
        @obj = @element.append "svg"
        @initAxes()
        
    append: (obj) -> @obj.append obj
    
    initAxes: ->

    width = 480 - margin.left - margin.right
    height = 480 - margin.top - margin.bottom
    
    constructor: (@xm=0, @ym=0.275) ->
        super "plot"

        chartArea = @obj
        chartArea.attr("width", width + margin.left + margin.right)
        chartArea.attr("height", height + margin.top + margin.bottom)

        chartArea.append("g")
            .attr("class", "axis")
            .attr("transform", "translate(#{margin.left}, #{margin.top})")
            .call(@xAxis) 

        chartArea.append("g")
            .attr("class", "axis")
            .attr("transform","translate(#{margin.left+width}, #{margin.top})")
            .call(@yAxis) 

        @plotArea = chartArea.append("g")
            .attr("id", "plot")
            .attr("transform", "translate(#{margin.left},#{margin.top})")

        Xm = Trans.x2X(@xm)
        Ym = Trans.y2Y(@ym)

        @marker()
            .attr("cx", Xm)
            .attr("cy", Ym)

        @line1 = @roofLine(-0.5, -0.5)
            .attr("x2", Xm)
            .attr("y2", Ym)

        @line2 = @roofLine(0.5, 0.5)
            .attr("x2", Xm)
            .attr("y2", Ym)

    roofLine: (xFixed, yFixed) ->
        @plotArea.append("line")
            .attr("x1", Trans.x2X xFixed)
            .attr("y1", Trans.y2Y yFixed)
            .style("stroke", 'black')
            .style("stroke-width","1")

    marker: () ->
        m = @plotArea.append('circle')
            .attr('r',10)
            .style('fill', 'black')
            .style('stroke', 'black')
            .style('stroke-width','1')
            .call(
                d3.behavior
                .drag()
