Fixed model - now creates a file in constructor