pythagora's therom code