package com.myo.stroll;

public class Route {
	Step[] steps;
	
	public Route(Step[] steps) {
		this.steps = steps;
	}
}

@@ -54,16 +54,35 @@
  steps;%0A
+%09int distance = 0;%0A
 %09%0A%09publi
@@ -127,13 +127,99 @@
  steps;%0A
+%09%09for (int i = 0; i %3C steps.length; i++) %7B%0A%09%09%09this.distance += steps%5Bi%5D.distance;%0A%09%09%7D%0A
 %09%7D%0A%7D%0A

Add route distance