Original: Its main functions are to settle legal disputes submitted to it by states and to give advisory opinions on legal questions submitted to it by duly authorized international organs , agencies , and the UN General Assembly .
Simplified: Sometimes , the ICJ sets up ad hoc chambers to hear and decide particular disputes .