Lesson 4 - Triangle (from scratch)