CS171 hw