add solved array homework no.5-7