added basic flow of applicaiton