hw13 direct code