Configuring the first and last element in the list