Adjusted to meet HW3 part 1 expectations, removed extra exeptions from main