public void setPRIORITY(Integer PRIORITY) {
        if(PRIORITY < 0 || PRIORITY > 9){
            throw new IndexOutOfBoundsException("Priority set outside allowed interval.");
        }
        this.PRIORITY = PRIORITY;
    }