Masterpiece of HW4 with documentation (Kor ver.)