Chapter 7：Add .First and .Last function