HW6 part 1 preparation work.