This is the program for function x