Spice_tutorial AA17-18 (from crescentini)