Initial and final version of code to walk around a triangle