If you want to start with Eiffel, have a look at those different version of class TRIANGLE and class POINT