For Part 4 of 310 Lab