Add a logic to reverse the list #6