Help with implementing MVVM in school project

Hi, I’m learning to code at school for about a year, and until now, all the code that I developed was in console with languages like C or Java. I also learned the basics of web development.

Right now I’m being introduced to Kotlin and my teacher gave us a simple app to make some data be sharable between activity’s.

I made it as best as I could and the goals were achieved, but the teacher also asked us to implement MVVM architecture to the project and it’s here that I’m having troubles. I can understand the concept of having the code divided but I can’t figure how to apply that to my project.

I would greatly appreciate if someone could take a look at it and give me some enlightenment on how to do or even change the code to fit the assignment objectives.

The code is here:

submitted by /u/Queasy_Ad9473
[link] [comments]