The Pythagorean theorem in mathematics laboratory