public static Job recv(BufferedReader in){
        Job job = new Job();

        try {
            job.id = Integer.parseInt(in.readLine());
            job.query = in.readLine();
            job.source = in.readLine();
            job.destination = in.readLine();
        } catch (NumberFormatException e) {
            System.err.println("Unable to parse ID to int");
            System.exit(-2);
        } catch (IOException e) {
            System.err.println("Socket read error when receiving Job");
            System.exit(-3);
        }

        return job;
    }