added depth and most frequent word methods