Oh my... This is how the code could look indeed. Which LLM did you use to generate this?