I’m not an expert but it seems to make sense to structure your code that way. I feel there might be more behind your question though. Why are you asking if you should use classes?
For your question about memory, this might be helpful:
I’m not an expert but it seems to make sense to structure your code that way. I feel there might be more behind your question though. Why are you asking if you should use classes?
For your question about memory, this might be helpful: