Codes and results for HW2