add lab3. make function to find polynom f(x) and g(x)