Pythagoras would be proud!