small script withe implementation of the SAX method