Printing names by using variables.