Improvise data structure and its use in the app.