Pythagorean Theorem and Square Pyramids