 		API.sharedAPI.fetchPosts(self.user.id) { post in
 			self.postedDates = post.map { $0.date! }
 			self.postedDays = self.postedDates.map { $0.day() }
+			self.postedLikes = post.map{ $0.likes }
 			self.collectionView.reloadData()
+			for likes in self.postedLikes {
+				self.avgLikes += Float(likes)
+				print("totalLikes: \(self.avgLikes)")
+			}
+			
+			print("Number of posts: \(self.postedLikes.count)")
+			self.avgLikes /= Float(self.postedLikes.count)
+			
 		}
 		
+//		for likes in postedLikes {
+//			avgLikes += Float(likes)
+//			print("totalLikes: \(avgLikes)")
+//		}
+//		
+//		print("Number of posts: \(postedLikes.count)")
+//		avgLikes /= Float(postedLikes.count)
+//		
         // Profile Info
 		title = "Profile"
 		beginIceFishing()

        cell.userInteractionEnabled = false
		
        if postedDays.contains(cell.date.day()) {
            cell.dayInnerCircleView.backgroundColor = UIColor.iceDarkRed
			cell.userInteractionEnabled = true
        }
        
        return cell
    }
	
    func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionReusableView {
        

    var startDate = NSDate(dateString:"2015-01-26")
    var postedDates: [NSDate] = []
	var postedDays: [Int] = []
	var postedLikes: [Int] = []
    var padding: CGFloat = 5
	var avgLikes: Float = 0
	
    // Outlets
    @IBOutlet weak var profilePictureView: UIImageView!
