Break out app into separate file