Used array functions to add, remove, sort and reverse arrays