part 0 and 1 of HW5