     func sceneSetup() {
         // 1
         let scene = SCNScene()
-        var particles = Set<Particle>()
-        
+
+        var randomSets = Array<ParticleSet>()
         for i in 1...10 {
-        particles.insert(Particle(uuid: NSUUID(), rssi: NSNumber(unsignedInt: arc4random_uniform(200)) ))
+            let particleSet = randomParticleSet()
+            randomSets.append(particleSet)
         }
-        
-        let particleSet = ParticleSet(timestamp: NSDate(), nucleus: UIDevice.currentDevice().identifierForVendor, particles: particles)
-        
-        scene.rootNode.addChildNode( createParticlesceneNode (particleSet))
+        scene.rootNode.addChildNode(createPartcleSceneNodeFromSets(randomSets) )
 
         particleSceneView.autoenablesDefaultLighting = true
         particleSceneView.allowsCameraControl = true

        return sphereCenterNode
    }
    
    func createParticleNode (particle: Particle, rotationOffset: Double) -> SCNNode {
        let spereGeometry = SCNSphere(radius: 0.2)
        spereGeometry.firstMaterial!.diffuse.contents = UIColor.redColor()
        spereGeometry.firstMaterial!.specular.contents = UIColor.orangeColor()
        
        let normalizedSignal = particle.rssi.doubleValue / 200.0
        let maxRadius = 2.2

        
        for var i = 0 ; i < particleArray.count ; ++i {
            let particle = particleArray[i]
            let node = createParticleNode( particle, rotationOffset: Double(i) * rotationOffset, zplane: zplane, hue: hue)
            childNodes.append(node)
        }
        
