public void execute(Shared shared, ComputeThread computeThread) {
		
		// Task does not have a parent, compose the task and return result to client
		if (this.getParentTaskId() == null){
			
			try {
				Result r = compose();
				((Computer2Space)space).putResultIntoResultQueue(r);
				System.out.println("Job done!");
				
			} catch (Exception e) {
				System.err.println("Could not add the result to the resultqueue");
				e.printStackTrace();
			}
		}
		
		// Task has a parent which means it is a subresult
		else {
			try {
				((Computer2Space)space).putPartialResult(compose());
			} catch (Exception e) {
				System.err.println("Could not send the result to the space.");
				e.printStackTrace();
			}
		}
	}