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