uses a constructor to be able to change filename