add pythagorean theorem demo