Added Linear function and Linear function test code.