Modeling with right triangles