HPSC homework assignment 2