http://www.mathplayground.com/Triplets/Triplets.html