Implement basic triangle class