I am trying to pass formatted files of different types through a function. To do this, I\'m creating a base file object and using inheritance to create the various file type