init design code of hw1