Completed 1st part of the third exercise for control flows and arrays