Pulling together a number of ideas; sorting, sorting! if else and defining a method and applying it to an array!