public void run(){
		
		int n = readInt("Enter a number: ");
		
		/*needed to iterate through the steps in the process*/
		int counter=0;
		
		while(true){
			
			/*implements guard to stop loop*/
			if(n==SENTINEL){
				break;
			}
			
			/*if odd*/
			else if(n%2==1){
				println(n + " is odd, so I make 3n + 1: " + (3*n+1));
				n = 3*n + 1;
				counter++;
			}
			
			/*if even*/
			else if (n%2 ==0){
				println(n + " is even, so I talk half " + (n/2));
				n = n/2;
				counter++;
			}
			
		}
		
		println("The process took " + counter +" to reach 1");
	}