chapter 5 challenge - triangle