         print("student outside the geofence for the class \(currentClass.name) !")
     }
     
-    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
-        // Get the new view controller using segue.destinationViewController.
-        // Pass the selected object to the new view controller.
-        if(segue.identifier == "DetailAttedanceViewControllerSegue"){
-            //   var vc:
-            
-        }else if(segue.identifier == "QuestionsViewControllerSegue"){
-            
-        }
-    }
-
-    override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-        // Dispose of any resources that can be recreated.
-    }
+    
+    
+    
+ // MARK: Collection View Controller Methods : 
+   override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int{
+        return 1;
+    }
+    
+    // The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:
+    override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell{
+        var cell :UICollectionViewCell!
+        
+        if indexPath.row == 0{
+         cell = collectionView.dequeueReusableCellWithReuseIdentifier("CheckInCell", forIndexPath: indexPath) as! CheckInCollectionViewCell
+            return cell;
+        }
+        if(indexPath.row == 1){
+            cell = collectionView.dequeueReusableCellWithReuseIdentifier("ClassNameCell", forIndexPath: indexPath) as! ClassNameCollectionViewCell
+            return cell
+        }
+        
+        if(indexPath.row == 2){
+            cell = collectionView.dequeueReusableCellWithReuseIdentifier("AttendanceCell", forIndexPath: indexPath) as! AttendanceCollectionViewCell
+            return cell
+        }
+        if(indexPath.row == 3){
+            cell = collectionView.dequeueReusableCellWithReuseIdentifier("QuestionsCell",forIndexPath:indexPath) as! QuestionsCollectionViewCell
+            return cell
+        }
+        
+        return cell;
+    }
+
+    
+    
+    
+    
+    
+//    func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
+//        // Get the new view controller using segue.destinationViewController.
+//        // Pass the selected object to the new view controller.
+//        if(segue.identifier == "DetailAttedanceViewControllerSegue"){
+//            //   var vc:
+//            
+//        }else if(segue.identifier == "QuestionsViewControllerSegue"){
+//        }
+//    }
+//    
+
+    
+    
+    
+    
+    
+    
+    
+    
+    
+
+
     
 }

        guard !currentClass.isFinished else {
            // class already done... do nothing
            print("class \(currentClass.name) already finished; can't attend")
            imageView3.hidden = true
            allowedToCheckIn = false
            return
        }
        
        guard currentClass.isStarted else {
            print("class \(currentClass.name) hasn't started yet")
            imageView3.hidden = true
            allowedToCheckIn = false
            imageView3.backgroundColor = UIColor.redColor()
            return
        }
        

        
        resetAttendView()
        setUpUI()
       
        setUpGestures()
    
        allowedToCheckIn = false
    }
    
    

    func setUpUI(){
     }
    
    func setUpGestures() {
      }
    
    //Attendance View Tapped.
    func attendanceViewTapped(){
