generation of Objective Fucntion of 4x4