triangles refactored

Thank you Github app
should be private - Remember that in the real world you need to test all public methods (it's your 'contract'). private methods are your friends because 1) who cares about testing them and 2) [more importantly] they can change.