Two-dimensional coordinate systems or Pythagorean theorem