delete h_val
update j_val , solution with some bugs there
update exercise 4 without bugs