public int compareTo(Duration time){
	//We need a variable to hold the final result
	int result = 0;//<<--we will initialize it with 0
	//We will grab the various variables from object A
	int hoursA = this.getHours();
	int minutesA = this.getMinutes();
	int secondsA = this.getSeconds();
	//We will grab the various variables from object B
	int hoursB = time.getHours();
	int minutesB = time.getMinutes();
	int secondsB = time.getSeconds();
	
	//To evaluate the time in both objects we will convert the variables to seconds for each object
	//This converts time in object A to seconds
	int totalSecondsA = hoursA * 3600  + minutesA * 60 + secondsA;
	//This converts time in object B to seconds
	int totalSecondsB = hoursB * 3600  + minutesB * 60 + secondsB;
	//If the seconds in A is greater than B we will set result to something greater than 0
	if (totalSecondsA > totalSecondsB){
		result = 1;//<--Setting result to 1
	}
	//If the seconds in B is greater than A we will set result to something less than 0
	if (totalSecondsA < totalSecondsB){
		result = -1;//<--Setting result to -1
	}
	
	return result;//<--returning result 0 if they are equal
}//end method compareTo