added pseudocode to prevent priority inversion in Controller class