Implementing DOM part of second assigment (DOM + SAX)