Update Triangle.scala