Finished code for Lab 02 (triangles).