// FINAL
		$proceed = 'You may proceed booking at booking.ritzcatton.com. 
			Type "hooman!" if you need our human assistance. We will attend you shortly.
			
			To start over, send any text message';
		
		// QUESTION 0
		$goto[0] = 1;
		$answer[0] = "
			Hello there, are you interested for boarding or grooming
			Type *1* for boarding
			Type *2* for grooming
		";
		
		// ERROR ON QUESTION 0
		$answer[1][0] = "
			Please answer from the choice
		";
		
		// QUESTION 1
		$goto[1][1] = 2;
		$answer[1][1] = "
			When do you plan for boarding? Enter date (DD/MM/YYYY)
		";
		
		$goto[1][2] = 5;
		$answer[1][2] = "
			What is your concern to groom your cat?
		
			Type *1* for Smelly/dirty
			Type *2* for Fleas/fungus
			Type *3* for Make him/her beautiful
		";
		
		// QUESTION 2
		$goto[2] = 3;
		$answer[2] = "
			For how many cats (1-5)
		";
		
		// QUESTION 3
		
		$goto[3][1] = 0;
		$answer[3][1] =  "
			Here is our suggestion:
			*Le Meowridien @ RM40/night*
			*Purr Season @ RM55/night*
		
			$proceed
		";
		$goto[3][2] = 0;
		$answer[3][2] =  "
			Here is our suggestion:
			*Le Meowridien @ RM40/night*
			*Purr Season @ RM55/night*
			
			$proceed
		";
		$goto[3][3] = 0;
		$answer[3][3] = "
			Here is our suggestion:
			*Purr Season @ RM65/night*
			*Ritz Catton @ RM70/night*
		
			$proceed
		";
		$goto[3][4] = 0;
		$answer[3][4] =  "
			Here is our suggestion:
			*Ritz Catton @ RM80/night*
		
			$proceed
		";
		$goto[3][5] = 0;
		$answer[3][5] = $response = "
			Here is our suggestion:
			*Ritz Catton @ RM90/night*
		
			$proceed
		";
		$goto[3][0] = 3;
		$answer[3][0] = "
			Please enter a number from 1 - 5
		";
		
		
		// QUESTION 5
		$goto[5][0] = 5;
		$goto[5][1] = 0;
		$goto[5][2] = 0;
		$goto[5][3] = 0;
		$answer[5][1] = "
			Here is our suggestion:
			*Basic Grooming*
			
			$proceed
		";
		$answer[5][2] = "
			Here is our suggestion:
			*Medicated Grooming*
			
			$proceed
		";
		$answer[5][3] = "
			Here is our suggestion:
			*Beauty Grooming*
			
			$proceed
		";
		$answer[5][0] = "
			Please enter from choice 1 - 3
		";
		
		switch ($session->stage):
			case 0:
				if (strpos(' '.strtolower($reply), 'hooman')){
					$response = 'A hooman will attend you shortly.';
					$stage = 0;
				} else {
					$response = $answer[0];
					$stage = $goto[0];
					
				}
				break;
			case 1:
				if (strpos(' '.strtolower($reply), 'hooman')){
					$response = 'A hooman will attend you shortly.';
					$stage = 0;
				} else {
					$reply = intval($reply);
					$stage = $goto[1][$reply] !== null ? $goto[1][$reply] : 1;
					$response = $answer[1][$reply] ? $answer[1][$reply] : $answer[1][0];
					
				}
				break;
			case 2:
				$dmy = explode('/', $reply);
				$ymd = $dmy[2] . '-' . $dmy[1] . '-' . $dmy[0];
				if (strtotime($ymd) < strtotime(date('Y-m-d'))){
					$stage = 2;
					$response = 'Please enter a valid date that must not be earlier than '.date('d/m/Y').' (DD/MM/YYYY)';
				} else {
					$response = $answer[2];
					$stage = $goto[2];	
				}
				
				break;
			case 3:
				$reply = intval($reply);
				$stage = $goto[3][$reply] !== null ? $goto[3][$reply] : $goto[3][0];
				$response = $answer[3][$reply] ? $answer[3][$reply] : $answer[3][0];
				
				
				break;
			case 5:
				$reply = intval($reply);
				$response = $answer[5][$reply] ? $answer[5][$reply] : $answer[5][0];
				$stage = $goto[5][$reply] !== null ? $goto[5][$reply] : $goto[5][0];
				break;
		endswitch;
		