 				}
 				
 				try realm.write{
-					realm.add(dataPoint)
+					session?.dataPoints.append(dataPoint)
 				}
 				
 			}catch{

			
			do{
				let realm = try Realm()
				
				var dataPoint = DataPoint()
				dataPoint.startTime = Date()

class ViewController: UIViewController {
	var profileID: String?
	var sessionID: String?
	
	var hud: HudViewController?
	let nodeRadius = 1.0
