Structured the application and added some authentication.