Exercise 3: modified method to select students' names that start with A