Added firstLast6  function