6. Using the given pattern