I already looked for similar questions but none of them were suitable for my usecase. Here is a simple example of what I want to achieve, because the whole code is too long