In the optimal savings lecture https://jax.quantecon.org/opt_savings.html, the function R_sigma is used (in `get_value`) before it is defined. The order should be swapped. There might be a similar issue with the optimal investment lecture