started adding the application logic