Added firstEl and lastEl methods