started working on the XML class, defined two methods