Worked with pythagorean triplet