Split App into separate file