HW 1 for CS340