changed the structure of the app by adding a lib folder