Application of Pythagoras Theorem