CS171 homeworks