inital app code