Individual Assignment Week 6 
Used the Resource[] to calculate the sum of resources collected