I will leave the previous one, I came up with a better solution