Finished part 0 and 1 of HW3