Welcome to stack overflow. Here we can help you with your coding issues. However, we're not a software design forum. There are other sites in the stack exchange network, for instance for code review, computer science, software engineering and mathematics. Plus there are many forums on the internet, as well as resources discussing the problem you describe. —
JHBonarius 1 min ago