how pythagoras theorem prof