Add hw11 direct code