Create a program that prints a list of files in a given directory, filtered by the extension of the files.