Completed If, Arrays, loops