The discovery of the pythagorean theorem