Added types to Triangle.