public double getPerimeter(){
		/* for this method we get the coords values out of the array given to us
		 * and use them as x and y coordinates. We then put them into a smaller array
		 * and ship them off to getDistance which should give us the distance between the
		 * two points. Then it's just a matter of finding the perimeter by adding them together
		 */
		// note that copyOfRange will copy up to n-1
		double[] line1 = Arrays.copyOfRange(gpsCoords, 0, 4);
		double[] line2 = Arrays.copyOfRange(gpsCoords, 2, 6);
		double[] line3 = Arrays.copyOfRange(gpsCoords, 4, 8);
		// this one was annoying because the points were not in order
		double[] line4 = {gpsCoords[0], gpsCoords[1], gpsCoords[6], gpsCoords[7]};
		// We use the getDistance method to find the distance between two points here for each line
		double distance1 = getDistance(line1);
		double distance2 = getDistance(line2);
		double distance3 = getDistance(line3);
		double distance4 = getDistance(line4);
		return distance1 + distance2 +distance3 + distance4;
	}