Completed first 2 parts of assignment.