public void writeReview(String id) {
		// Create a new rno for the review
		String rno = createNewRno();
		int rating = -1;
		String reviewText = "";
		
		// Get reviewer email
		User user = User.getInstance();
		String email = user.getEmail();
		
		// Boolean to check if the  user has entered an int for rating
		boolean isInt = false;
		// Boolean to check if the  rating is between 1 and 5
		boolean isValid = false;
		
		System.out.println("New Review:");
		
		// Prompt the user for an int rating between 1 and 5
		while (isInt == false || isValid == false)
		{
			isInt = false;
			isValid = false;
			System.out.println("Enter a rating between 1 and 5:");
			
			String input = Menu.getKeyBoard();
			
			// Check if the input is an integer
			try
			{
				rating = Integer.parseInt(input);
			} catch (NumberFormatException e)
			{
				// Print error message to user
				System.out.println("Invalid input: Rating must be an interger value");
				System.out.println("Please try again");
				continue;
			}
			
			isInt = true;
			
			// If the input is an int, check if between 1 and 5
			if( rating >= 1 && rating <= 5 )
			{
				isValid = true;
			}
			
			// Print error messages if the input is not in bounds
			if( !isValid )
			{
				System.out.println("Invalid input: Rating must be between 1 and 5 inclusive");
				System.out.println("Please try again");
			}
		}
		
		// Prompt the user for review text.
		System.out.println("Please enter review text:");
		String inputText = Menu.getKeyBoard();
		reviewText = inputText.trim();
		
		if( reviewText.length() > 80)
			reviewText = reviewText.substring(0, 79);
		
		// Get connection to database
		Connection m_con = Database.getInstance().getConnection();

		// Check connection
		if (m_con == null) {
			System.out.println("Unable to Connect to Server");
			return;
		}

		// Create Statement
		Statement stmt;

		try {
			stmt = m_con.createStatement();
			
			// Write the review to the database in the reviews table
			String query = "INSERT INTO reviews VALUES ('" + rno + "','"
					+ String.valueOf(rating) + "','" + reviewText + "','"
					+ email + "','" + id + "', sysdate)";
			
			stmt.executeUpdate(query);
			stmt.close();

		} catch (SQLException e) {
			System.err.println("SQLException: " + e.getMessage());
		}
		
	}