Completed Parts 1-4 (python coding.