ammended triangle struct