HtDF homework assignment 1