public static void main(String[] args) {
		// Declaring variables
		PPMEC outPPM;
		// Store the reference of the output file.

		// Default required number of arguments.
		final int NUMBERS_OF_ARG = 4;

		// Set width and height to -1 because these values cannot be negative.
		// These values will be changed to positive during the input process.
		// If these values are still negative, the user has entered invalid
		// values.
		int width = -1;
		int height = -1;

		// Check for the number of arguments. If insufficiently provided, return
		// the usage message and then terminate the program. Otherwise process
		// with the next steps.
		if (args.length < NUMBERS_OF_ARG) {
			System.out.println();
			usage();
		} else {
			// Echo the entered arguments.
			for (int i = 0; i < args.length; i++) {
				if (i == args.length - 1) {
					System.out.print(args[i]);
				} else {
					System.out.print(args[i] + " ");
				}
			}
			System.out.println();
			// This code fragment tests for invalid inputs such as wrong type.
			// This code fragment also try to find the input file. If not found,
			// print out the error message. If found, process with the next
			// steps.

			try {
				width = Integer.parseInt(args[1]);
				height = Integer.parseInt(args[2]);
				if (width < 0 || height < 0) {
					usage();
					return;
				}
			} catch (Exception invalidInPut) {
				usage();
				return;
			}
			outPPM = new PPMEC(width, height);
			try {
				// Trying to read the input file, create the image dimension
				SVGEC newSVG = new SVGEC(args[0], outPPM, args[3]);
				newSVG.drawPixmap(outPPM);
				outPPM.writeToFile(args[3]);
			} catch (FileNotFoundException fileNotFound) {
				System.out.println("Sorry, unable to read from " + args[0]
						+ ".");
				return;
			} catch (InvalidSVGFileFormatExceptionEC e) {
				try {
					outPPM.writeToFile(args[3]);
				} catch (FileNotFoundException k) {
					System.out.println("Sorry, unable to write to " + args[3]
							+ ".");
				}
			}

		}
	}