Updated array homework based on feedback.