update solution to Triangle