implemented simple methods for parsing html