Removed unnecessary file
Extract app1 data creation to a method
Support I/O as stream