Matrioshka dolls code