added pseudo code on how the invoker should work