Data structure tested a little bit. It seems it works!!!