finalized the answer to the pythagorean