This is the code for the application