TeX source:
{-2} \rightarrow \boxed{h} \rightarrow {h(-2)} \rightarrow \boxed{g} \rightarrow g( {h(-2)})