Example 4.9 and Exercises 4.6 + 4.7 done with sage
minor fixes with zero_directions