public void run() {
		println("This program computes the Hailstone sequences.");					//prompts the user for input
		int counter = 0;
		int n = readInt("Enter a number: ");

		while (n > 1) {
			if (isEven(n)) {														//determines whether or not n is even
				int half = takeHalf(n);												//takes half of n
				println(n + " is even, so I take half = " + half);					//displays sequence for even n
				n = half;
			} else {
				int threeNPlusOne = makeThreeNPlusOne(n);							//makes 3n + 1
				println(n + " is odd, so I make 3n + 1 = " + threeNPlusOne);		//displays sequence for odd n
				n = threeNPlusOne;
			}
			counter ++;																//counts the number of steps to reach 1
		}
		println("The process took " + counter + " steps to reach 1.");
	}