It is possible, but it’s a total mess
I know conceptually, it’s a nice idea to get all your data structures organized, but I’d either keep all these things separate ( as parallel arrays ), or use CPP.