added hypotenuse method
added whitespace for better reading