CG HW5 initial codes added.