     }
 
     func writeSites(in country: Country) {
-        let whsSites = [String]()
+        let whsSites = sites.filter {
+            $0.iso_code.contains(country.alpha2.lowercased())
+        }
+
         let twhsSites = [String]()
 
         guard !whsSites.isEmpty || !twhsSites.isEmpty else {

import Cocoa

class ViewController: NSViewController {

    enum Document {
        case html


    @IBOutlet var output: NSTextView!
    
    var whsVisited = 0
    var twhs = 0
    var twhsVisited = 0
