// Import processing
import processing.core.*;

public class LifeExpectancy extends PApplet {
  // Declare unfolding map
  UnfoldingMap map;
  // Map data structure that has key value pairs
  // Take data from outside csv file and store it in a data structure
  // in our class (Map) and that data structure is going to keep
  // track of which life expectancy belongs to which country using
  // key value pairs
  HashMap <String, Float> lifeExpMap;
  // List the type of object that will be stored inside the container class
  List <Feature> countries;
  List <Marker> countryMarkers;

  public void setup() {
    // Load and setup map
    size(800, 600, OPENGL);
    map = new UnfoldingMap(this, 50, 50, 700, 500, new Google.GoogleMapProvider());
    // Call function that will load the lifexpectancy data from the csv file
    lifeExpMap = loadLifeExpectancyFromCSV("LifeExpectancyWorldBank.csv");

    // Call function that will shade the countries in with the appropriate
    // color
    shadeCountries();
  }
  public void draw() {
    map.draw();
  }

  // Make the helper methods private
  // ShadeCountries helper method to color each country based on life expectancy
  // Red-orange indicates low (near 40)
  // Blue indicates high (near 100)
  private void shadeCountries() {

  }

  private HashMap<String, Float> loadLifeExpectancyFromCSV(String filename) {
    // Private helper method that takes in the filename and returns
    // a hashmap of life expectancies with their respective countries

    // Declare hashmap that will be returned
    HashMap<String, Float> lifeExpMap = new HashMap<String, Float>();

  }
}

@@ -448,82 +448,119 @@
 ap;%0A
+%0A
   // 
-List the type of object that will be stored inside
+Create a list where the first is allowed to store features%0A  // and
  the 
+se
 con
-tainer clas
+d is allowed to store marker
 s%0A  
@@ -1318,16 +1318,413 @@
 ries() %7B
+%0A    for (Marker marker : countryMarkers) %7B%0A      String countryId = marker.getId();%0A      if (lifeExpMap.containsKey(countryId)) %7B%0A        float lifeExpMap = lifeExpMap.get(countryId);%0A        int colorLevel = (int) map(lifeExpMap, 40, 90, 10, 255);%0A        marker.setColor(color(255-colorLevel), 100, colorlevel);%0A      %7D%0A      else %7B%0A        marker.setColor(color(150, 150, 150));%0A      %7D%0A    %7D
 %0A%0A  %7D%0A%0A 
@@ -1954,23 +1954,60 @@
 Declare 
-hashmap
+construct that will construct the map object
  that wi
@@ -2008,16 +2008,23 @@
 hat will
+%0A    //
  be retu
@@ -2099,14 +2099,505 @@
 at%3E();%0A%0A
+    // Read in all the fields in the file one row at a time and stick%0A    // content of row inside array of strings%0A    String%5B%5D rows = loadStrings(fileName);%0A%0A    // Iterate each row at a time and parse away only the relevant information%0A    for (String row : rows) %7B%0A      // Split row of strings into array of fields%0A      String%5B%5D columns = row.split(%22,%22);%0A      if (...) %7B%0A        lifeExpMap.put(columns%5B4%5D, Float.parseFloat(columns%5B5%5D));%0A      %7D%0A    %7D%0A    return lifeExpMap;%0A  %7D%0A%0A%0A%0A%0A%0A%0A
   %7D%0A%7D%0A

Add shadeCountries