- moves Triangle methods to cpp file