Applications of Pythagoras