Completed 3rd part of the first exercise for control flows and arrays