Triangle class wrapped and working